<!-- <template>
	<view>
		<view>
			<u-cell-group>
				<u-cell-item title="实名认证状态" :value="isCertification?'已认证':'待认证'" :required="true" :arrow="false"
					:valueStyle="isCertification?vcolor1:vcolor2"></u-cell-item>
				<u-cell-item title="身份信息" :value="isCertification?'已认证':'待认证'" :required="true"
					:valueStyle="isCertification?vcolor1:vcolor2"
					@click="isCertification ? isCertificationed() : goto('../../subpages/id_photo/id_photo')">
				</u-cell-item>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isCertification: false, //认证状态
				vcolor1: {
					'color': 'rgba(255, 87, 51, 1)'
				},
				vcolor2: {
					'color': 'rgba(166, 166, 166, 1)'
				}
			}
		},
		methods: {
			//认证提醒
			isCertificationed() {
				uni.showToast({
					title: '您已完成认证,请勿重复认证',

				})
			},
			//页面跳转
			goto(url) {
				uni.navigateTo({
					url: url,
					animationType: 'slide-in-right',
					animationDuration: 1000

				})
			},
			getcertinfo() {
				const userstatus = getApp().globalData.userinfo.userStatus;
				this.isCertification= userstatus>=0?true:false;
			}
		},
		onLoad() {
			this.getcertinfo();
		}
	}
</script>

<style>

</style>
 -->